package entity;

public class SimpleAddress {

  private String street;

  private String city;

  public SimpleAddress() {
  }

  public SimpleAddress(String street, String city) {
    this.street = street;
    this.city = city;
  }

  @Override
  public boolean equals(Object obj) {
    if (this == obj)
      return true;
    if (obj == null)
      return false;
    if (getClass() != obj.getClass())
      return false;
    SimpleAddress other = (SimpleAddress) obj;
    if (street == null) {
      if (other.street != null)
        return false;
    } else if (!street.equals(other.street))
      return false;
    if (city == null) {
      if (other.city != null)
        return false;
    } else if (!city.equals(other.city))
      return false;
    return true;
  }
}
